package com.example.dr.model

import androidx.lifecycle.ViewModel
import com.example.dr.RetrofitManager
import com.example.dr.bean.CommonBean
import com.example.dr.bean.RandomValBean
import io.reactivex.Single

class LoginViewModel : ViewModel() {
    fun getRandomVal(len: Int, t: String): Single<CommonBean<RandomValBean>> {
        return RetrofitManager.service.getRandomVal(len = len, t = t)
    }
}